<?php
namespace app\admin\validate;
use yzh52521\validate\Validate;

class CrontabValidate extends validate{

	/**
	 *@description 验证器规则
	 *@buildcode(true)
	*/
	protected $rule = [
		'name'=>['require'],
		'rule'=>['require'],
	];

	/**
	 *@description 错误提示
	 *@buildcode(true)
	*/
	protected $message = [
		'name.require'=>'任务名称不能为空',
		'rule.require'=>'规则不能为空',
	];

	/**
	 *@description 验证场景
	 *@buildcode(true)
	*/
	protected $scene  = [
		'add'=>['name','rule'],
		'update'=>['name','rule'],
	];



}